package java67_15;

public class DriverTest {

	public static void main(String[] args) {
		OldDriver d = new OldDriver("老刘");
		// d.OldDriver();

		Car c = new Car("法拉利", "皖A9993");
		Bus b = new Bus("146", "皖Ad93992");
		Train t = new Train("D2709", "信阳", "杭州");
		d.drive(c);
		System.out.println("-----------------");
		d.drive(b);
		System.out.println("-----------------");
		d.drive(t);
	}

}
